#ifndef _ThTypes_H_
#define _ThTypes_H_

#define MAX_WORD_LEN    256

typedef struct TCurrentMode {
	HWND WND;
	POINT Pt;
	size_t WordLen;
	char MatchedWord[MAX_WORD_LEN];
	int BeginPos;
} TCurrentMode;

typedef struct TGlobalDLLData {
	HWND ServerWND;
	HHOOK g_hHookMouse;
	UINT_PTR TimerID;
	HWND LastWND;
	POINT LastPt;
	TCurrentMode CurMod;
	char LibName[MAX_WORD_LEN];
} TGlobalDLLData;

extern TGlobalDLLData *GlobalData;


void ThTypes_Init();
void Thtypes_End();


#endif
